package com.example.springaop.proxy;

public class ProxyTest {
    public static void main(String[] args) {
        HouseSubject subject = new RealHouseSubject();
        //创建代理类
        HouseSubject proxy = new HouseProxy(subject);

        proxy.rent();
        //proxy.sale();
    }
}
